package demo2.demo2.service.impl;

import demo2.demo2.service.PeopleService;
import org.springframework.stereotype.Component;

import javax.jws.WebService;

@WebService(serviceName="PeopleService",//对外发布的服务名
        targetNamespace="http://service.demo2.demo2",//指定你想要的名称空间，通常使用使用包名反转
        endpointInterface="demo2.demo2.service.PeopleService")//服务接口全路径, 指定做SEI（Service EndPoint Interface）服务端点接口
@Component
public class PeopleServiceImpl implements PeopleService {
    @Override
    public String getPeople(String pId) {
        return "getPeople() -- > hello";
    }

    @Override
    public String getPeopleName(String pId) {
        return "getPeopleName() -- > world";
    }
}
